package cn.rokka.rbac.mapper;

import cn.rokka.rbac.domain.Department;
import cn.rokka.rbac.domain.Permission;
import cn.rokka.rbac.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    int selectForCount(QueryObject qo);

    List<Permission> selectForList(QueryObject qo);

    void batchInsert(@Param("permissions") HashSet<Object> permissions);
}